package fun.tan90.wx.pay.rest;

import fun.tan90.wx.pay.service.OrderService;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

import javax.annotation.Resource;

@RestController
@RequestMapping("/order")
public class OrderController {

    @Resource
    OrderService orderService;

    @GetMapping("/pay")
    public boolean pay() {
        return orderService.pay("2020123123456789");
    }

    @GetMapping("/receive")
    public boolean receive() {
        return orderService.receive("2020123123456789");
    }
}
